package com.ailesson.video.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ailesson.common.reply.PageResult;
import com.ailesson.video.entity.CourseDescriptionEntity;
import com.ailesson.video.model.req.CourseDescriptionQueryReq;
import com.ailesson.video.model.req.CourseDescriptionReq;
import com.ailesson.video.model.reply.CourseDescriptionReply;

/**
 * 课程简介
 *
 * @author mac
 * @email mac@gmail.com
 * @date 2024-10-02 10:31:00
 */
public interface CourseDescriptionService extends IService<CourseDescriptionEntity> {

    /**
     * 分页查询
     * @param params
     * @return
     */
    PageResult queryPage(CourseDescriptionQueryReq params);

    /**
     * 查询信息
     * @param id
     * @return
     */
    CourseDescriptionReply info(Long id);

    /**
     * 更新信息
     * @param courseDescription
     */
    void update(CourseDescriptionReq courseDescription);

    /**
     * 新增
     * @param courseDescription
     */
    Long add(CourseDescriptionReq courseDescription);
}

